package Service.StatisticalReport.StatisticalReportImpl;

import Dao.StatisticalReportDao.EvaluateDetailDao;
import Model.StatisticalReport.Report;
import Model.StatisticalReport.ReportClass;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class EvaluateDetailService extends AbstractReportService{

    @Resource
    EvaluateDetailDao dao;

    private static ReportClass reportClass = ReportClass.EVALUATE;

    public EvaluateDetailService(){
        super(reportClass);
    }

    @Override
    public int addBatch(List<? extends Report> batch) {
        return dao.addBatch(reportClass.getSchemaName(), batch);
    }
}
